
const HTTP_BASE_URL = "http://172.17.125.84:8030";
// const HTTP_BASE_URL = "https://webos-h5.test.bestpay.net";
// const HTTP_BASE_URL = "https://webos.test.bestpay.net";

const http = axios.create({
  timeout: 5000, // 请求超时时间
  // withCredentials: true,
  headers: {
    'Content-Type': 'application/json',
    'webos-token': 'webos00.7182F4D4046CC79F33C526414B516E2F',
    "trace-log-id": Date.parse(new Date())
  },
});
http.defaults.baseURL = HTTP_BASE_URL;

http.interceptors.request.use((config) => {
  config.data = [config.data];
  return config
})
http.interceptors.response.use(response => {
  return response.data;
});
